package basic

import (
	"bufio"
	"fmt"
	"os"
)

// 一行行来读取这个文件
func ReadLineFile(pathname string)  {
	// open
	file, err := os.Open(pathname)
	if(err != nil){
		panic(err)
	}
	defer func() {
		file.Close()
	}()

	scaner := bufio.NewScanner(file)
	for scaner.Scan() {
		fmt.Println(scaner.Text())
	}

}
